package RSA;

import java.io.Serializable;
import java.math.BigInteger;

public class Key implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private BigInteger n;
	private BigInteger e;
	private int size;
	
	public Key(BigInteger l_n, BigInteger l_e, int ksize)
	{
		n = l_n;
		e = l_e;
		size = ksize;
	}
	
	public Key(int l_n, int l_e, int ksize)
	{
		n = BigInteger.valueOf(l_n);
		e = BigInteger.valueOf(l_e);
		size = ksize;
	}
	
	public String toString()
	{
		String r = "Modulus :"+n+" \nExponent :"+e;
		return r;
	}
	
	public int getSize()
	{
		return size;
	}
	
	public BigInteger getModulus()
	{
		return n;
	}
	
	public BigInteger getExponent()
	{
		return e;
	}
}
